<?php if (!defined('THINK_PATH')) exit();?><!--<meta http-equiv="refresh" content="1"/>-->
<link href="/Public/Admin/css/same.css"  type="text/css" rel="stylesheet"/>
<script src="/Public/js/jquery-1.11.3.min.js" type="text/javascript"></script>
<link href="/Public/css/bootstrap.css"  type="text/css" rel="stylesheet"/>
<script src="/Public/js/layer/layer.js" type="text/javascript"></script>
<script src="/Public/js/bootstrap.js" type="text/javascript"></script>
<script src="/Public/Admin/js/TradeInfo.js" type="text/javascript"></script>
<div class="a-main-left-content">
    <div class="a_con_title">
        <h4>交易信息管理</h4>
    </div>
    <div class="a_title_tip">
        <img class="a_record_icon" src="/Public/img/record_01.jpg"/>
        <span class="a_record_news">请及时完善订单信息。</span>
    </div>

    <div class="read_type_box">
        <form action="<?php echo U('Admin/InfoManage/tradeManage');?>" method="post">
            <div class="tt">
                <span>书籍名称：</span>
                <input type="text" name="book_name">
                <span>支付方式：</span>
                <select name="buy_type">
                    <option value="">请选择</option>
                    <option value="2">银联支付</option>
                    <option value="1">货到付款</option>
                </select>
                <div class="read_submit_record">
                    <img src="/Public/Admin/img/record_02.jpg" alt="搜索">
                    <input type="submit" value="查询" id="input_zz" >
                </div>
            </div>
        </form>
        <div class="tt_box">
            <?php if(is_array($_getBookByIdBuyInfo)): $i = 0; $__LIST__ = $_getBookByIdBuyInfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="tt_tt">
                    <div class="tt_tt_span">
                        <span><?php echo (date('Y-m-d',$vo['buybook_time'])); ?></span>
                    </div>
                    <div class="info_tt">
                        <span><?php echo ($vo['real_name']); ?></span>
                        <span>购买1本：《<?php echo ($vo['book_name']); ?>》</span>
                        <span>
                            支付方式：
                            <?php if($vo['buy_type'] == 1): ?>货到付款
                                    <?php else: ?>
                                    银联支付<?php endif; ?>
                        </span>
                        <span>地址为：<?php echo ($vo['u_address']); ?></span>
                        <span>电话为：<?php echo ($vo['u_tel']); ?></span>
                    </div>
                    <div class="input_tt">
                        <input type="button" class="ss" data-id-status="<?php echo ($vo['buybook_id']); ?>" value="完成订单">
                        <input type="hidden" value="<?php echo U('Admin/InfoManage/tradeStatus');?>" id="ss-url">
                    </div>
                </div><?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
    </div>
</div>